// diylane-api.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "server.h"
#include "modules/cookies.h"

int main(int argc, const char* argv[])
{
	diylane::cookies::CookieJar jar;

	jar.parse(" a=1111; b= 333;c=akzlz  llddf; eeee; f1;f2=");
	jar.parse("BD_HOME=0; BD_CK_SAM=1; ispeed_lsm=2; BD_UPN=1d314753; __bsi=16981318605830120499_00_0_I_R_1_0303_C02F_N_I_I_0; H_PS_645EC=c4a7i4upou4QRJQfA%2FbYIXjqWxaD4tfQaHPE5gFPf1AWngjS4%2F8%2Bumg%2BocAvIIb1Yao6Dg; BDSVRTM=0; BAIDUID=FDA10BF6075503B3F80F2D448A8424D2:FG=1; BIDUPSID=FDA10BF6075503B3F80F2D448A8424D2; PSTM=1484966268; H_PS_PSSID=; BDRCVFR[SL8xzxBXZJn]=mk3SLVN4HKm; PSINO=6; BDORZ=FFFB88E999055A3F8A630C64834BD6D0");

	diylane::cookies::CookieMap::iterator it;
	for (it = jar.cookies.begin(); it != jar.cookies.end(); it++) {
		std::string key = it->first;
		diylane::cookies::Cookie cookie = it->second;
		printf("%s -> %s\n", key.c_str(), cookie.value.c_str());
	}

    return run_crow(argc, argv);
}
